Reverse each word of string in Java using StringBuilder